<strong>
		 <script language="JavaScript">
 var dtCh= "/";
 var minYear=1900;
 var maxYear=2100;

 function isInteger(s){
 	var i;
     for (i = 0; i < s.length; i++){
         // Check that current character is number.
         var c = s.charAt(i);
         if (((c < "0") || (c > "9"))) return false;
     }
     // All characters are numbers.
     return true;
 }

 function stripCharsInBag(s, bag){
 	var i;
     var returnString = "";
     // Search through string's characters one by one.
     // If character is not in bag, append to returnString.
     for (i = 0; i < s.length; i++){
         var c = s.charAt(i);
         if (bag.indexOf(c) == -1) returnString += c;
     }
     return returnString;
 }

 function daysInFebruary (year){
 	// February has 29 days in any year evenly divisible by four,
     // EXCEPT for centurial years which are not also divisible by 400.
     return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );
 }
 function DaysArray(n) {
 	for (var i = 1; i <= n; i++) {
 		this[i] = 31
 		if (i==4 || i==6 || i==9 || i==11) {this[i] = 30}
 		if (i==2) {this[i] = 29}
    }
    return this
 }

 function isDate(dtStr){
 	var daysInMonth = DaysArray(12)
 	var pos1=dtStr.indexOf(dtCh)
 	var pos2=dtStr.indexOf(dtCh,pos1+1)
 	var strDay=dtStr.substring(0,pos1)
 	var strMonth=dtStr.substring(pos1+1,pos2)
 	var strYear=dtStr.substring(pos2+1)
	if (strYear.length == 2) strYear = "19" + strYear
 	strYr=strYear
 	if (strDay.charAt(0)=="0" && strDay.length>1) strDay=strDay.substring(1)
 	if (strMonth.charAt(0)=="0" && strMonth.length>1) strMonth=strMonth.substring(1)
 	for (var i = 1; i <= 3; i++) {
 		if (strYr.charAt(0)=="0" && strYr.length>1) strYr=strYr.substring(1)
 	}
 	month=parseInt(strMonth)
 	day=parseInt(strDay)
 	year=parseInt(strYr)
 	if (pos1==-1 || pos2==-1){
 		alert("You must enter your date of birth\nin the format dd/mm/yyyy")
 		return false
 	}
 	if (strMonth.length<1 || month<1 || month>12){
 		alert("You must enter your date of birth\nin the format dd/mm/yyyy")
 		return false
 	}
 	if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day > daysInMonth[month]){
 		alert("You must enter your date of birth\nin the format dd/mm/yyyy")
 		return false
 	}
 	if (strYear.length != 4 || year==0 || year<minYear || year>maxYear){
 		alert("You must enter your date of birth\nin the format dd/mm/yyyy")
 		return false
 	}
 	if (dtStr.indexOf(dtCh,pos2+1)!=-1 || isInteger(stripCharsInBag(dtStr, dtCh))==false){
 		alert("You must enter your date of birth\nin the format dd/mm/yyyy")
 		return false
 	}
 return true
}


function validText()
{
 		if  (emailForm.FirstName.value == "")
 	{
	 	alert("You must enter a first name")
	 	emailForm.FirstName.focus()
		return false;
	}
	
		if  (emailForm.Name.value == "")
 	{
	 	alert("You must enter a last name")
	 	emailForm.Name.focus()
		return false;
	}
	


	if  (isDate(emailForm.Dateofbirth.value)==0)
	{
		//alert("You have not filled in a valid Date of Birth")
		emailForm.Dateofbirth.focus()
		return false;
	}

	if ((emailForm.Address.value=="")&&(emailForm.Telephone.value=="")&&(emailForm.Email.value==""))
	{
		alert("You must provide at least\none contact method")
		emailForm.Address.focus()
		return false;

	}

	//if  (emailForm.Heard.value == "")
	{
		//alert("You have not told us how you heard of Peterborough Regional College")
		//emailForm.Heard.focus()
		//return false;
	}

	return true;
}

         </script>
		 Please f complete all of the following enquiry form.		 </strong>
<form name="emailForm" version="0.02" method="post" action="http://<?php echo $_SERVER['SERVER_NAME']; ?>/enquiry1.asp" onsubmit="return(validText());">
       
        
        <table width="100%" border="0" cellspacing="0" cellpadding="0">

          <tr>
            <td colspan="5"><strong>Title:</strong></td>
            <td colspan="6"><label>

Mr  
    <input name="Title" type="radio" id="Title" value="Mr" checked="checked" />
    &nbsp; &nbsp;
     
Mrs           
<input type="radio" name="Title" id="Title" value="Mrs" />
&nbsp; &nbsp;

 
Miss 
<input type="radio" name="Title" id="Title" value="Miss" />
&nbsp; &nbsp;
 
Ms
<input type="radio" name="Title" id="Title" value="Ms" />
&nbsp; &nbsp;
 Other  
 <input type="radio" name="Title" id="Title" value="Other" />
            </label><br /><br /></td>
          </tr>

          <tr>
            <td colspan="5"><p><strong>First Name:</strong></p>              </td>
            <td colspan="6"><input type="text" name="FirstName" title="FirstName" size="25" /><br /><br /></td>
          </tr>
          <tr> 
            <td colspan="5"><strong>Last Name:</strong></td>
            <td colspan="6"><input type="text" name="Name" title="Name" size="25" /> 
              <br /><br /></td>

          </tr>
          <tr> 
            <td colspan="5"><strong>Date of Birth:</strong></td>
            <td colspan="6"><input type="text" name="Dateofbirth" title="DateofBirth" size="17" />
                (Please enter as dd/mm/yyyy)<br />
                <br /></td>
          </tr>
          <tr> 
            <td colspan="5"><strong>Address:</strong></td>

            <td colspan="6"><textarea cols="40" name="Address" title="Address" rows="6" ></textarea> 
              <br /><br /></td>
          </tr>
          <tr> 
            <td colspan="5"><strong>Telephone:</strong></td>
            <td colspan="6"><input type="text" name="Telephone" title="Telephone Number" size="25" /> 
              <br /><br /></td>
          </tr>
          <tr> 
            <td colspan="5" valign="bottom"><strong>Email:</strong></td>

            <td colspan="6"><input type="text" name="Email" title="Email Address" size="47" /></td>
          </tr>
          <tr>
            <td colspan="5">&nbsp;</td>
            <td colspan="6">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="5"><strong>Current school if applicable:</strong></td>

            <td colspan="6"><input type="text" name="School" title="Current school if applicable" size="47" /></td>
          </tr>
          <tr> 
            <td colspan="5">&nbsp;</td>
            <td colspan="6">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="11"><strong>Please indicate the type of prospectus you
                would like us to send you by ticking the <br />
appropriate boxes below:<br /><br /></strong></td>

          </tr>
          
          <tr>
            <td colspan="9" valign="top"><input name="FT" type="checkbox" title="Full Time" value="Yes" />
              Full-time course <br />
&nbsp; &nbsp; &nbsp; guide 2011/12            </td>
            <td><input name="PT" type="checkbox" title="Part-time guide 2009/10" value="Yes" />
              Part-time course guide <br />

&nbsp; &nbsp; &nbsp; 2010/11 (Sept start)  </td>
            <td><p>
              <input name="Degree" type="checkbox" title="Degree Courses" value="Yes" />
              Degree Course <br />
&nbsp; &nbsp; &nbsp; guide 2011/12
    
            </p>    </td>

            </tr>
          <tr>
            <td colspan="9" valign="top">&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            </tr>
          <tr> 
            <td colspan="9" valign="top">
            <!--<input name="Apprenticeship" type="checkbox" title="Apprenticeships" value="Yes" />
              Apprenticeship <br />
&nbsp; &nbsp; &nbsp; guide 2011/12
  <br />
  --></td>

            <td width="156">          </td>
            <td width="149">&nbsp;</td>
            </tr>
          
          
          <tr>
            <td colspan="5">&nbsp;</td>
            <td colspan="6">&nbsp;</td>
          </tr>
          <tr> 
            <td colspan="5"> <strong>How can we help:</strong></td>

            <td colspan="6"><textarea cols="40" name="How" rows="4" title="Enquiry">&nbsp;</textarea></td>
          </tr>
          <tr> 
            <td colspan="5">&nbsp;</td>
            <td colspan="6">&nbsp;</td>
          </tr>
          
          <tr>
            <td colspan="11">Peterborough Regional College would like to use your
              details to send you relevant information in the future. We will
              not pass your details on to any other organisation. Please tick
              how we may contact you: <br /><br /> 
              Post:
              <input type="checkbox" name="Chkpost" value="Yes" title="Post" />

&nbsp; &nbsp; Telephone:
<input type="checkbox" name="Chktel" value="Yes" title="Tel" />
&nbsp; &nbsp; Email:
<input type="checkbox" name="Chkemail" value="Yes" title="Email" />
&nbsp; &nbsp; SMS text:
<input type="checkbox" name="Chksms" value="Yes" title="SMS" /></td>
          </tr>
          <tr>
            <td colspan="11">&nbsp;</td>

          </tr>
          <tr>
            <td colspan="11"><br /><strong>Please tick if you are aware of any of the following
              advertising by the College: <br />
           
            </strong></td>
          </tr>
          <tr>
            <td colspan="11"><table width="100%" border="0">
              <tr>

                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>

                <td colspan="4">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td width="6%"><strong>Event</strong></td>
                <td>&nbsp;</td>
                <td colspan="2"><strong>Newspaper</strong></td>
                <td width="3%">&nbsp;</td>

                <td width="10%">&nbsp;</td>
                <td width="3%">&nbsp;</td>
                <td colspan="2"><strong>Radio</strong></td>
                <td width="5%">&nbsp;</td>
                <td colspan="2"><strong>Poster/banner</strong></td>
                <td colspan="4"><strong>Other source</strong></td>
                <td width="11%">&nbsp;</td>

              </tr>
              
              <tr>
                <td height="32"><input type="checkbox" name="chkevent" title="event" value="yes" /></td>
                <td width="1%">&nbsp;</td>
                <td width="3%"><input type="checkbox" name="chkET" title="ET" value="yes" /></td>
                <td width="12%">Evening Telegraph</td>
                <td><input type="checkbox" name="chkHP" title="Herald & Post" value="yes" /></td>
                <td>Herald &amp; <br />

                  Post</td>
                <td>&nbsp;</td>
                <td width="3%"><input type="checkbox" name="chkheart" title="heart" value="yes" /></td>
                <td width="9%">Hereward Heart FM</td>
                <td>&nbsp;</td>
                <td width="4%"><input type="checkbox" name="chktown" title="town" value="yes" /></td>
                <td width="11%">Town</td>

                <td width="3%"><input type="checkbox" name="chkaa" title="aa" value="yes" /></td>
                <td width="11%">AA signs</td>
                <td width="1%">&nbsp;</td>
                <td width="4%"><input type="checkbox" name="chkconnexions" title="connexions" value="yes" /></td>
                <td>Connexions</td>
              </tr>
              <tr>
                <td height="32">&nbsp;</td>

                <td>&nbsp;</td>
                <td><input type="checkbox" name="chkhunt" title="Hunts Post" value="yes" /></td>
                <td>Hunts Post</td>
                <td><input type="checkbox" name="chkstamford" title="stamford" value="yes" /></td>
                <td>Stamford Mercury</td>
                <td>&nbsp;</td>
                <td><input type="checkbox" name="chklite" title="lite" value="yes" /></td>
                <td>Lite FM</td>

                <td>&nbsp;</td>
                <td><input type="checkbox" name="chkschool" title="school" value="yes" /></td>
                <td>School</td>
                <td><input type="checkbox" name="chkmailshot" title="mailshot" value="yes" /></td>
                <td>Mail shot</td>
                <td>&nbsp;</td>
                <td><input type="checkbox" name="chkyellow" title="yellow" value="yes" /></td>
                <td><p>YellowPages/<br />

                  Phonebook</p></td>
              </tr>
              <tr>
                <td height="32">&nbsp;</td>
                <td>&nbsp;</td>
                <td><input type="checkbox" name="chkcamb" title="Cambs Times" value="yes" /></td>
                <td>Cambs Times</td>
                <td><input type="checkbox" name="chknewsother" title="newsother" value="yes" /></td>

                <td>Other</td>
                <td>&nbsp;</td>
                <td><input type="checkbox" name="chkkiss" title="kiss" value="yes" /></td>
                <td>Kiss</td>
                <td>&nbsp;</td>
                <td><input type="checkbox" name="chklibrary" title="library" value="yes" /></td>
                <td>Library</td>

                <td><input type="checkbox" name="chkwebsite" title="website" value="yes" /></td>
                <td>Website</td>
                <td>&nbsp;</td>
                <td><input type="checkbox" name="chkemail2" title="email" value="yes" /></td>
                <td>E-mail/<br />
                  Text</td>
              </tr>

              <tr>
                <td height="32">&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td><input type="checkbox" name="chkradioother" title="radioother" value="yes" /></td>

                <td>Other</td>
                <td>&nbsp;</td>
                <td><input type="checkbox" name="chkposterother" title="posterother" value="yes" /></td>
                <td>Other</td>
                <td><input type="checkbox" name="chkbus" title="bus" value="yes" /></td>
                <td>Bus Advert</td>
                <td>&nbsp;</td>

                <td><input type="checkbox" name="chksourceother" title="sourceother" value="yes" /></td>
                <td>Other</td>
              </tr>
              <tr>
                <td colspan="17">&nbsp;</td>
                </tr>
            </table></td>
          </tr>

          <tr>
            <td colspan="11"><div align="right"> <input type="submit" value="Submit" title="Submit" name="b1" />
               <input type="reset" value="Reset" title="Reset" name="b2" /></div></td>
          </tr>
        </table>
        
         </form>
